package HttpBean.Request;

public class RequestLine {
    private String method;
    private String uri;
    private String httpVersion;
    public RequestLine(String str){
        String[] strs = str.split(" ");
        this.method = strs[0];
        this.uri = strs[1];
        this.httpVersion = strs[2];
    }

    public String getMethod() {
        return method;
    }

    public String getUrl() {
        return uri;
    }

    public String getHttpVersion() {
        return httpVersion;
    }

    @Override
    public String toString() {
        return "RequestHead{" +
                "method='" + method + '\'' +
                ", url='" + uri + '\'' +
                ", httpVersion='" + httpVersion + '\'' +
                '}';
    }
}
